package im.oen.gui.tools;

import im.oen.gui.tools.window.MainFrame;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

import javax.annotation.PostConstruct;
import javax.swing.*;


/**
 * @author Kevin.Xu
 */
@SpringBootApplication
public class ToolStarter {

    public static void main(String[] args) {
        SpringApplicationBuilder builder = new SpringApplicationBuilder(ToolStarter.class);
        builder.headless(false).run(args);
    }


    @PostConstruct
    private void start() {
        SwingUtilities.invokeLater(() -> {
            MainFrame main = new MainFrame();
            main.setVisible(true);
        });
    }
}